Optimal. Leaf size=85 \[ \frac {\left (a+b x^n\right ) \log (x)}{a \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}-\frac {\left (a+b x^n\right ) \log \left (a+b x^n\right )}{a n \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 85, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.179, Rules used = {1369, 272, 36,
29, 31} \begin {gather*} \frac {\log (x) \left (a+b x^n\right )}{a \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}-\frac {\left (a+b x^n\right ) \log \left (a+b x^n\right )}{a n \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 272
Rule 1369
Rubi steps
\begin {align*} \int \frac {1}{x \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}} \, dx &=\frac {\left (a b+b^2 x^n\right ) \int \frac {1}{x \left (a b+b^2 x^n\right )} \, dx}{\sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}\\ &=\frac {\left (a b+b^2 x^n\right ) \text {Subst}\left (\int \frac {1}{x \left (a b+b^2 x\right )} \, dx,x,x^n\right )}{n \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}\\ &=\frac {\left (a b+b^2 x^n\right ) \text {Subst}\left (\int \frac {1}{x} \, dx,x,x^n\right )}{a b n \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}-\frac {\left (b \left (a b+b^2 x^n\right )\right ) \text {Subst}\left (\int \frac {1}{a b+b^2 x} \, dx,x,x^n\right )}{a n \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}\\ &=\frac {\left (a+b x^n\right ) \log (x)}{a \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}-\frac {\left (a+b x^n\right ) \log \left (a+b x^n\right )}{a n \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 45, normalized size = 0.53 \begin {gather*} \frac {\left (a+b x^n\right ) \left (\log \left (x^n\right )-\log \left (a n \left (a+b x^n\right )\right )\right )}{a n \sqrt {\left (a+b x^n\right )^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 66, normalized size = 0.78
method | result | size |
risch | \(\frac {\sqrt {\left (a +b \,x^{n}\right )^{2}}\, \ln \left (x \right )}{\left (a +b \,x^{n}\right ) a}-\frac {\sqrt {\left (a +b \,x^{n}\right )^{2}}\, \ln \left (x^{n}+\frac {a}{b}\right )}{\left (a +b \,x^{n}\right ) a n}\) | \(66\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 27, normalized size = 0.32 \begin {gather*} \frac {\log \left (x\right )}{a} - \frac {\log \left (\frac {b x^{n} + a}{b}\right )}{a n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 22, normalized size = 0.26 \begin {gather*} \frac {n \log \left (x\right ) - \log \left (b x^{n} + a\right )}{a n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x \sqrt {\left (a + b x^{n}\right )^{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{x\,\sqrt {a^2+b^2\,x^{2\,n}+2\,a\,b\,x^n}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________